package com.smile.frame.seckill.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName payment
 */
@TableName(value ="payment")
@Data
public class Payment {
    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 秒杀id
     */
    @TableField(value = "skill_id")
    private Long skillId;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 支付状态
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 支付金额
     */
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
}